package com.helloscala.helper

import scala.xml.{Unparsed, NodeSeq}

import net.liftweb.markdown.Transformer

object MarkdownHelpers {
  private val transformer = new Transformer {}

  def parseToNodeSeq(content: String): NodeSeq = {
    val result = transformer(content)
    Unparsed(result)
  }

  def parseToString(content: String): String =
    transformer(content)
}
